Replace the autorelease pools used for each drawing context and in
authorRichard Hult <richard@imendio.com>
Mon, 10 Dec 2007 20:22:08 +0000 (20:22 +0000)
committerRichard Hult <rhult@src.gnome.org>
Mon, 10 Dec 2007 20:22:08 +0000 (20:22 +0000)
commitd7f3ab056937d2f58d26705ac4da7019616f0698
treea3462248a4c29bea9ab4de9c1d460478255d895f
parentf4baa51f4937f1a290e06b3a4cc9766116e74d1b
Replace the autorelease pools used for each drawing context and in

2007-12-10  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkdrawable-quartz.c:
(gdk_quartz_drawable_get_context),
(gdk_quartz_drawable_release_context):
* gdk/quartz/gdkeventloop-quartz.c: (gdk_event_prepare),
(gdk_event_check), (gdk_event_dispatch), (poll_func):
* gdk/quartz/gdkwindow-quartz.h: Replace the autorelease pools
used for each drawing context and in prepare, dispatch and poll
with one that exists across each main loop iteration. Fixes leaks
on leopard and protects against future leaks introduce when the
underlying system changes again (bug #492977).

svn path=/trunk/; revision=19149
ChangeLog
gdk/quartz/gdkdrawable-quartz.c
gdk/quartz/gdkeventloop-quartz.c
gdk/quartz/gdkwindow-quartz.h